#ifndef _HDR_AIP_GOTO
#define _HDR_AIP_GOTO

#include "../AI_package.h"
#include "../../map.h"
#include "../../pathfinder.h"

class AIP_goto: public AI_package{

    public:
        clock_t initialTime;
        clock_t duration;
        float   speed;          //en case/min
        fcoord  origin;
        fcoord  destination;
        pathfinder pth;

        AIP_goto(clock_t,float,fcoord,fcoord);
        virtual void AI_exec(character*,clock_t);
        virtual void char_update(character*,clock_t);
        virtual float getProgress(character*,clock_t);
        virtual bool recalculate(map*,clock_t,fcoord);

};

#endif
